package com.syzg.base.permission.dao;

import com.syzg.base.permission.model.Permission;
import com.syzg.common.dao.BaseDAO;
import com.syzg.core.exception.ServiceException;

import java.util.List;

@SuppressWarnings("unchecked")
public interface PermissionDAO extends BaseDAO<Permission>
{

	public abstract List findAllRoleModules(String long1);

    public abstract List findAllRoleOperations(String long1);

    public abstract List findAllModuleAndSelected(String long1);

    public abstract List findAllOperationAndSelected(String long1);

    public abstract List findModulesByPersonId(String long1)
        throws ServiceException;

    public abstract boolean verifyPersonPermission(String long1, String s, String s1);

    public abstract List getPersonPermission(String long1);

    public abstract List getAllPermission();
}